package com.foreverwin.jzymes.production.debur.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.debur.mapper.PrintLogMapper;
import com.foreverwin.jzymes.production.debur.domain.PrintLog;
import com.foreverwin.jzymes.production.debur.service.IPrintLogService;

/**
 * 打印记录 服务层实现
 * 
 * @author ervin
 * @date 2019-04-03
 */
@Service
public class PrintLogServiceImpl implements IPrintLogService
{
	@Autowired
	private PrintLogMapper printLogMapper;

	/**
     * 查询打印记录信息
     * 
     * @param handle 打印记录ID
     * @return 打印记录信息
     */
    @Override
	public PrintLog selectPrintLogById(String handle)
	{
	    return printLogMapper.selectPrintLogById(handle);
	}
	
	/**
     * 查询打印记录列表
     * 
     * @param printLog 打印记录信息
     * @return 打印记录集合
     */
	@Override
	public List<PrintLog> selectPrintLogList(PrintLog printLog)
	{
	    return printLogMapper.selectPrintLogList(printLog);
	}
	
    /**
     * 新增打印记录
     * 
     * @param printLog 打印记录信息
     * @return 结果
     */
	@Override
	public int insertPrintLog(PrintLog printLog)
	{
	    return printLogMapper.insertPrintLog(printLog);
	}
	
	/**
     * 修改打印记录
     * 
     * @param printLog 打印记录信息
     * @return 结果
     */
	@Override
	public int updatePrintLog(PrintLog printLog)
	{
	    return printLogMapper.updatePrintLog(printLog);
	}

	/**
     * 删除打印记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePrintLogByIds(String ids)
	{
		return printLogMapper.deletePrintLogByIds(ids.split(","));
	}
	
}
